import java.util.Arrays;
import java.util.Scanner;

class MyArr<T>{
    
      Object[] arr = new Object[10];

    public void setArr(int pos , T elm) {
        arr[pos] = elm;
    }

    public T getArr(int pos) {
        return (T)arr[pos];
    }

    @Override
    public String toString() {
        return "MyArr{" +
                "arr=" + Arrays.toString(arr) +
                '}';
    }
}

public class Test{
    public static void main(String[] args) {
        MyArr<Integer> arr = new MyArr<>();
        arr.setArr(1 ,3);
        arr.setArr(2 ,3);
        arr.setArr(3 ,44);
        arr.setArr(4 ,6);
        arr.setArr(5 ,5);
        System.out.println(arr.toString());
    }
}
